ae33552bd96e23f11e7595fdac79dbd121246349,testapp/src/main/java/com/google/android/agera/testapp/NotesActivity.java,NotesActivity,onCreate,#Bundle#,78

Before Change


    setContentView(R.layout.notes_activity);

    // Setup strict mode, no violations using Agera
    setThreadPolicy(new ThreadPolicy.Builder().detectAll().penaltyLog().penaltyDeath().build());
    setVmPolicy(new VmPolicy.Builder().detectAll().penaltyLog().penaltyDeath().build());

    // Create the notes store, containing all async IO

After Change


    setContentView(R.layout.notes_activity);

    // Setup strict mode, no violations using Agera
    setThreadPolicy(new ThreadPolicy.Builder().detectAll().penaltyLog().build());
    setVmPolicy(new VmPolicy.Builder().detectAll().penaltyLog().build());

    // Create the notes store, containing all async IO